package com.ygbhu.design.builder.demo;

/**
 * @program: design-pattern
 * @description: 建造者
 * @author: smzhu3
 * @create: 2021-06-24 14:41
 **/
public class ProductHome extends Builder{

    private Home home;

    public ProductHome() {
        this.home = new Home();
    }

    @Override
    void builderA() {
        home.getA();
    }

    @Override
    void builderB() {
        home.getB();
    }

    @Override
    void builderC() {
        home.getC();
    }

    @Override
    void builderD() {
        home.getD();
    }

    @Override
    Home getHome() {
        return this.home;
    }
}
